Create a Script using AI

With the AI-powered script generation capability, you can generate scripts based on natural language prompts, modify existing scripts, and automate script properties. Currently, Scripting is supported for Windows & macOS.

To create a script using AI:

  1. Navigate to Libraries > Scripting.
  2. On the Scripting page, click the Assistant tab to open the script editor assistant.
  3. Click New Chat to create a script using natural language.
  4. To create a new script, type a clear, specific prompt describing the script you want, and provide details such as the target OS, language, and any specific requirements.

    NOTE: When you provide a clear and unambiguous prompt, the Assistant responds with a script and recommended settings.
    If not provided, the Assistant displays plan for the script which a user needs to accept and prompt it to generate the script.

  5. Click Enter.
    The Assistant analyzes your prompt and displays a plan for the script.
  6. Review the plan/script and Recommended Settings populated by the Assistant:
    • Name: Auto-generated name of the script based on the prompt.
    • Description: Auto generated. It summarizes the script purpose.

      NOTE: For existing scripts, if the description is not added, you can add it by clicking the Generate Description button.

    • Operating System: Selected based on the prompt. Defaults to Windows if not specified in the prompt.
    • Language: Selected based on the prompt. Defaults to PowerShell for Windows & POSIXShell for macOS if not specified in the prompt.
      • Language Version: Selected based on the prompt. Defaults to the latest supported version if not specified in the prompt.
    • User Account: Selected based on the prompt. Defaults to current user if not specified.
    • Timeout: Specifies the time the script will be terminated if it is still running after the timeout elapses.
    • Dependencies: As specified in the prompt.
      If not adding dependency while creating a script, you can add it later. See Adding Dependencies.
  7. Click Use Script and Apply Settings to insert the generated script and recommended settings.
  8. Review and modify any settings as needed.
  9. Click Save and Publish to publish the script or Save as Draft to save the script as a draft.

NOTE: Points to remember about a Session:

  • New Chat starts a fresh session.
  • History drop-down shows previous sessions for your account.
  • Each session has a unique Conversation ID.
  • Conversation history is user-specific. Other users cannot see your prompts or sessions, even when they open the same script.